-module(hw).
-export([sayHello/0, times10/1, times2/1, sum/1]).

qsort([]) -> [].
qsort([Pivot | T]) ->
	qsort([X || X <- T, X < Pivot])
	++ [Pivot] ++
	qsort([X || X <- T, Pivot >= X]).

sum([H|T]) -> H + sum(T);
sum([])    -> 0.

sayHello() ->
	io:format("Hello World~n").

times10(Number) ->
	Tmp = 10 * Number,
	Tmp + 1.

times2(Number) ->
	case Number of
		0 -> 1;
		_ ->
			Tmp = 10 * Number,
			Tmp + 1
	end.